//
//  DataOfMyPublish.m
//  LCOnePsychology
//
//  Created by li cheng on 16/09/23
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "DataOfMyPublish.h"
#import "AnswerOfDataMyPublish.h"

@implementation DataOfMyPublish
- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"answer"]) {
        NSMutableArray<AnswerOfDataMyPublish *> *mArrayOfAnswerOfDataMyPublish = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            AnswerOfDataMyPublish *answerOfDataMyPublish = [AnswerOfDataMyPublish modelDic:dic];
            [mArrayOfAnswerOfDataMyPublish addObject:answerOfDataMyPublish];
        }
        _answer = mArrayOfAnswerOfDataMyPublish;
    }
}
+ (NSDictionary *)objectClassInArray{
    return @{@"answer" : [AnswerOfDataMyPublish class]};
}

@end
